[[package]]
name = "git2"
version = "0.0.1"
-source = "git+https://github.com/alexcrichton/git2-rs#1676b0196c4b130ef670aa5c09903dd00aac33a6"
+source = "git+https://github.com/alexcrichton/git2-rs#a20191dde5d482debb90b5913f03a58ca73720e2"
dependencies = [
"libgit2-sys 0.0.1 (git+https://github.com/alexcrichton/git2-rs)",
"time 0.1.0 (git+https://github.com/rust-lang/time)",
[[package]]
name = "libgit2-sys"
version = "0.0.1"
-source = "git+https://github.com/alexcrichton/git2-rs#1676b0196c4b130ef670aa5c09903dd00aac33a6"
+source = "git+https://github.com/alexcrichton/git2-rs#a20191dde5d482debb90b5913f03a58ca73720e2"
dependencies = [
"libssh2-sys 0.0.1 (git+https://github.com/alexcrichton/ssh2-rs)",
"openssl-sys 0.2.2 (git+https://github.com/sfackler/rust-openssl)",
let mut remote = try!(repo.remote_anonymous(url.as_slice(), refspec));
try!(remote.add_fetch("refs/tags/*:refs/tags/*"));
remote.set_callbacks(&mut cb);
- try!(remote.fetch(None, None));
+ try!(remote.fetch(&["refs/tags/*:refs/tags/*", refspec], None, None));
Ok(())
})
}
",
addr = addr,
errmsg = if cfg!(windows) {
- "Failed to send request: The connection with the server \
+ "failed to send request: The connection with the server \
was terminated abnormally\n"
} else {
"SSL error: [..]"
}
let mut index = repo.index().unwrap();
index.add_all(&["*"], git2::ADD_DEFAULT, Some(|a: &[u8], _b: &[u8]| {
- if s.iter().any(|s| s.path().as_vec() == a) {1} else {0}
+ if s.iter().any(|s| a.starts_with(s.path().as_vec())) {1} else {0}
})).unwrap();
index.write().unwrap();
}
let subrepo = s.open().unwrap();
let mut origin = subrepo.find_remote("origin").unwrap();
origin.add_fetch("refs/heads/*:refs/heads/*").unwrap();
- origin.fetch(None, None).unwrap();
+ origin.fetch(&[], None, None).unwrap();
origin.save().unwrap();
subrepo.checkout_head(None).unwrap();
s.add_finalize().unwrap();
let mut origin = subrepo.find_remote("origin").unwrap();
origin.set_url(git_project3.url().to_string().as_slice()).unwrap();
origin.add_fetch("refs/heads/*:refs/heads/*").unwrap();;
- origin.fetch(None, None).unwrap();
+ origin.fetch(&[], None, None).unwrap();
origin.save().unwrap();
let id = subrepo.refname_to_id("refs/remotes/origin/master").unwrap();
let obj = subrepo.find_object(id, None).unwrap();